package com.huang.dao;

import com.huang.domain.CourseInfo;
import com.huang.domain.CrouseSelection;
import com.huang.domain.Schedule;
import com.huang.domain.Student;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * @author HuangZiy
 * @date 2020/9/12
 */
public interface IStudentDao {
    List<Student> findAllStudent();
    void saveStudent(Student student);
    void saveCrouseSeletion(CrouseSelection crouseSelection);
    void saveSchedule(Schedule schedule);
    void saveCourseInfo(CourseInfo courseInfo);

    @Update("update student set sname = #{sName} where id = #{id}")
    void updateStudent(Student student);

    @Delete("delete from student where id=#{id}")
    void deleteStudent(Student student);
}
